Skip to content

Instantly share code, notes, and snippets.

@kyryl-bogach
kyryl-bogach / 99-minibook-x-accel.rules
Last active September 17, 2026 20:41
Chuwi MiniBook X (N100/N150) + Omarchy: auto-rotation, tablet-mode keyboard lock, rotation lock toggle, landscape boot
# Chuwi MiniBook X (N100/N150): the ACPI firmware only enumerates the display
# accelerometer. Instantiate the base accelerometer (mxc4005 @ 0x15 on the
# 0000:00:15.0 DesignWare adapter) so hinge angle / tablet mode can be computed.
ACTION=="add", SUBSYSTEM=="iio", DEVPATH=="*/i2c-MDA6655:00/iio:device0", RUN+="/bin/sh -c 'for f in /sys/bus/pci/devices/0000:00:15.0/i2c_designware.0/i2c-*/new_device; do echo mxc4005 0x15 > $f 2>/dev/null || true; done'"
# Tag locations so iio-sensor-proxy always picks the display sensor.
ACTION=="add", SUBSYSTEM=="iio", DEVPATH=="*/i2c-MDA6655:00/*", ENV{ACCEL_LOCATION}="display"
ACTION=="add", SUBSYSTEM=="iio", DEVPATH=="*/0-0015/*", ENV{ACCEL_LOCATION}="base"

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@dpaluy
dpaluy / README.md
Last active September 17, 2026 20:32
Download view only protected PDF from Google Drive

Step by step guide to downloading protected PDF from Google Drive

  1. Open the document in Google Docs
  2. Scroll to the bottom of the document, so all the pages are present
  3. Open Developer Tools on separate window and choose the Console tab
  4. Paste the code
  5. Have fun!
@Logicbloke
Logicbloke / kahoot.php
Created May 31, 2020 02:30
Cheat: Revealing all questions and answers of a Kahoot quiz.
<?php
error_reporting(null);
if(!isset($_GET["pin"]))
die("No PIN?");
$url = "https://kahoot.it/rest/challenges/pin/".$_GET["pin"];
$response = file_get_contents($url);
$jresponse = json_decode($response, TRUE);
@pjburnhill
pjburnhill / TypeSafe Jev — Project Knowledge Resource.md
Created September 16, 2026 23:14
Comprehensive project reference for TypeSafe Jev: concepts, architecture, primitives, strengths, limitations, use cases, patterns, and practical guidance.

TypeSafe Jev — Project Knowledge Resource

Status: Working project reference
Knowledge date: 16 September 2026
Scope: TypeSafe AI, System One Models, and specifically the Jev model


1. Purpose of this resource

@k16shikano
k16shikano / SKILL.md
Last active September 17, 2026 20:29
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@kitler-alt
kitler-alt / agentrouter.md
Created September 14, 2026 10:39
AgentRouter Review 2026: Unlock $200 Free LLM API Credits & Zero Subscription Headaches

AgentRouter Review 2026: Unlock $200 Free LLM API Credits & Zero Subscription Headaches

AI development has long been hindered by costly subscriptions and fragmented API ecosystems. If you’ve ever struggled to choose between Claude’s deep reasoning and GPT’s versatility, or dreaded paying for multiple services just to test a new idea, a new platform is quietly shifting the paradigm.

AgentRouter stands out as a non-profit, unified LLM API gateway that grants developers $200 in free credits simply for registering. No credit card required. No hidden catches. Just direct, unrestricted access to top-tier AI models that typically cost hundreds of dollars a month.

📑 Table of Contents

  1. What Exactly Is AgentRouter?
  2. The $200 Free Credits Breakdown
  3. Model Catalog: What You Get Access To
Product Year Version Product Keys
Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
https://x.com/massgravel/status/1988306014371008542
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
@pawamoy
pawamoy / objectsinv.py
Created September 4, 2026 10:21
objects.inv stats top 500 packages
#!/usr/bin/env python3
"""Survey Python-domain object types used by the top 500 PyPI projects.
``INVENTORIES`` is a reproducible snapshot of the trailing-30-day download
ranking from ``top-pypi-packages``. PyPI metadata does not provide an
inventory URL, so unavailable or unverified inventories are recorded with
``None`` and skipped.
Five sorted lists are written to stdout: each ``py:objtype`` with the number of
inventories containing it, each project and its unique Python object types,
@zyntromedia
zyntromedia / codeql-analysis.yml
Created September 1, 2026 20:46
name: "CodeQL Analysis" on: push: branches: [ "main", "develop" ] pull_request: branches: [ "main" ] schedule: - cron: '30 1 * * 0' # ทุกวันอาทิตย์ เวลา 08:30 น. jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'javascript', 'typesc…
name: "CodeQL Analysis"
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '30 1 * * 0' # ทุกวันอาทิตย์ เวลา 08:30 น.